#ifndef COMMONHELPER_H
#define COMMONHELPER_H

#include <QObject>
#include <QSize>
#include <QSettings>
#include <QUrl>
#include <QTimer>

class CommonHelper: public QObject
{
    Q_OBJECT
    Q_DISABLE_COPY( CommonHelper )
private:
    CommonHelper();
public:
    static CommonHelper *instance();
public slots:
    void setValue(const QString& key,const QVariant& value);

    QVariant getValue(const QString& key);

    void clipboardText(const QString& str);

    QVariant openImageDialog();

    bool question(QObject* obj, const QString& str);
private:
    QSettings m_settings;
    QTimer* m_try;
};

#endif // COMMONHELPER_H
